<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <link rel="stylesheet" href="http://at.alicdn.com/t/c/font_3911564_ynvs5zhem7p.css">
    <link rel="stylesheet" href="../Css/new_addContract.css">
    <link rel="stylesheet" href="../Css/btn.css">
</head>

<body>
    <div>

        <div class="rightmain1">
            <div>
                <div>合同列表</div>
                <div>
                    <button class="btn1"><span class="iconfont icon-export"></span>导出</button>
                    <button class="btn1"><a href="../contract/contractList.html"><span
                                class="iconfont icon-shuaxin"></span>返回</a></button>
                </div>
            </div>
        </div>

        <div class="jibenxingxi">
            <div><span class="iconfont icon-liebiao  jbxx"></span>基本信息</div>
            <form action="">
                <ul>
                    <li><span class="ispanWidth">合同编号：</span><input type="text" readonly="true" id="contract_number2">
                    </li>
                    <li><span class="ispanWidth">合同名称：</span><input type="text" value="" readonly="true"
                            id="contract_name2"></li>
                    <li><span class="ispanWidth">合同日期：</span><input type="text" value="" readonly="true"
                            id="contract_day2"></li>
                    <li><span class="ispanWidth">客户名称：</span><input type="text" value="" readonly="true"
                            id="Client_name2"></li>
                    <li><span class="ispanWidth">所属商机：</span><input type="text" value="" readonly="true"
                            id="contract_opportunity2"></li>
                    <li><span class="ispanWidth">合同总金额（万元）：</span><input type="text" value="" readonly="true"
                            id="contract_amount2"></li>
                    <li><span class="ispanWidth">合同内容：</span><textarea name="" id="" cols="30" rows="6" value=""
                            readonly="true" id="contract_content2">11111</textarea>
                    </li>
                    <li><span class="ispanWidth">附件：</span>
                        <button class="dianjixiazai" type="button">下载附件</button>
                    </li>
                    <li><span class="ispanWidth">状态：</span><input type="text" value="" readonly="true"
                            class="contract_state2"></li>
                    <li><span class="ispanWidth">创建人：</span><input type="text" value="" readonly="true"
                            class="contract_Player2"></li>
                    <li><span class="ispanWidth">创建时间：</span><input type="text" value="" readonly="true"
                            class="contract_createdDate2"></li>
                    <li><span class="ispanWidth">审核时间：</span><input type="text" value="" readonly="true"
                            class="contract_conftime2"></li>
                </ul>
            </form>
        </div>
    </div>



    <!-- <script src="../js/jquery-3.6.3.js"></script> -->
    <script>


        // ContractDetailsTZ();

        // function ContractDetailsTZ() {
        //     $(".dangeHkjl").click(function () {
        //         let url = "../refund/Details.html";
        //         $(".jibenxingxi").load(url);
        //     })

        // }

        xgcontract();
        function xgcontract() {

            let index;
            db.contract.forEach(e => {
                if (e.id == idtzm) {
                    index = e.id;
                }
            });
            $("#contract_number2").val(contract[index - 1].contract_number);
            $("#contract_name2").val(contract[index - 1].contract_name);
            $("#contract_day2").val(contract[index - 1].contract_day);
            $("#Client_name2").val(contract[index - 1].Client_name);
            $("#contract_opportunity2").val(contract[index - 1].contract_opportunity);
            $("#contract_amount2").val(contract[index - 1].contract_amount);
            $("#contract_content2").val(contract[index - 1].contract_content);

            $("#contract_state2").val(contract[index - 1].contract_state);
            $("#contract_Player2").val(contract[index - 1].contract_Player);
            $("#contract_createdDate2").val(contract[index - 1].contract_createdDate);
            $("#contract_conftime2").val(contract[index - 1].contract_conftime);

        }







    </script>

</body>

</html>